package com.ssh.domain.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssh.bean.User_SunShuHao;
import com.ssh.dao.UserDAO_SunShuHao;
import com.ssh.domain.Login_SunShuHao;
/**
 * 
 * @author 孙树昊
 *
 */
@Transactional
@Service
public class LoginImpl_SunShuHao implements Login_SunShuHao {
	@Resource
	private UserDAO_SunShuHao userDao;

	public boolean login(User_SunShuHao user) {
		return userDao.queryUser(user.getUsername(), user.getPassword()) == null ? false
				: true;
	}
}
